package demo2;

public class Test {
    public static void main(String[] args) {
        KeyBoard keyBoard = new KeyBoard();
        Mouse mouse = new Mouse();
        Computer computer = new Computer();
        computer.computerOn();
        Computer.useService(keyBoard);
        System.out.println("----------");
        Computer.useService(mouse);
        computer.computerOff();
    }
}
